import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//vue-resource停止更新了,用回axios.
import vueAxios from 'vue-axios'
import axios from 'axios'
Vue.use(vueAxios, axios)
import qs from 'qs' //使request Payload 提交变成form提交.有些后端收不了request Payload 
Vue.prototype.$qs = qs



//图片懒加载
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload)
Vue.use(VueLazyload, {
	preLoad: 1.3,
	// error: require('./static/loading.gif'),
	loading: require('./static/loading.gif'),
	attempt: 1
})

//图片点击大图插件
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)

//element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
